package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ESeeDoctorRecord;
import com.api.shopapi.mapper.ESeeDoctorRecordMapper;
import com.api.shopapi.service.ESeeDoctorRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("ESeeDoctorRecordServiceImplOne")
public class ESeeDoctorRecordServiceImpl implements ESeeDoctorRecordService {

    @Autowired
    private ESeeDoctorRecordMapper seeDoctorRecordMapper;

    @Override
    public int insert(ESeeDoctorRecord seeDoctorRecord) {
        return seeDoctorRecordMapper.insert(seeDoctorRecord);
    }

    @Override
    public int update(ESeeDoctorRecord seeDoctorRecord) {
        return seeDoctorRecordMapper.update(seeDoctorRecord);
    }

    @Override
    public int delete(String eSeeDoctorRecordCode) {
        return seeDoctorRecordMapper.delete(eSeeDoctorRecordCode);
    }

    @Override
    public ESeeDoctorRecord getByElderlyCode(String elderlyCode) {
        return seeDoctorRecordMapper.getByElderlyCode(elderlyCode);
    }
}
